#include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <linux/joystick.h>

class xbox_input
{
	private:
		int fd = -1;
	public:
	xbox_input(std::string path = "/dev/input/js0");
	~xbox_input();
	int dev_open(std::string path = "/dev/input/js0");
	int read_event(js_event &event);
};



